import instance from './instance'
export function getTypeList() {
    return instance({
        url: "/getType",
        method: "post"
    })
}
export function getBrandList(data) {
    return instance({
        url: "/getBrand",
        method: "post",
        data: data
    })
}
//庞永智
export function loginList(data) {
    return instance({
        url: "/users/login",
        method: "post",
        data: data
    })
}
export function zzy_postShoop(data) {
    return instance({
        url: '/release/create',
        method: 'post',
        data: data
    })
}
export function zzy_getType(params) {
    return instance({
        url: '/release/gmlist',
        method: 'get',
        params
    })
}
//庞永智注册
export function registerList(data) {
    return instance({
        url: "/users/register",
        method: 'post',
        data: data
    })
}
//庞永智手机验证码
export function sendYzmList(data) {
    return instance({
        url: "/users/sendYzm",
        method: 'post',
        data: data
    })
}

// 王家壮  根据自己的_id获取聊天记录
export function information_getChatList(data){
    return instance({
        url:"/information/getChatList",
        method:"post",
        data:data
    })
}
// 获取与某个人的聊天记录
export function information_getchatHistory(data){
    return instance({
        url:"/information/getchat-history",
        method:"post",
        data:data
    })
}

//个人商品表姜存旺
export function myShowList(data){
    return instance({
        url:"/my/myShoopList",
        method:'get',
        data:data
    })
}
//个人商品上架下架
export function myShoopupdate(data){
    return instance({
        url:"/my/myShoopUpdate",
        method:'post',
        data:data
    })
}

